package cn.java81.myschool.dao;


import cn.java81.myschool.entity.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SubjectDao {
    public int add(Subject s);

    public int add1(Map<String,Object> s);

    public int update(Subject s) ;

    public int del(@Param("id") Long id) ;

    //查询
    public List<Subject> findALL();
    //arg0,arg1,param1,param2
    public List<Subject> search(@Param("pageNo") int pageNo,@Param("pageSize")int pageSize);
}
